package com.sky.service;

import com.sky.dto.*;
import com.sky.entity.Orders;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.query.OrderQuery;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

/**
* @author 马毅爽
* @description 针对表【orders(订单表)】的数据库操作Service
* @createDate 2023-11-09 20:56:39
*/
public interface OrdersService extends IService<Orders> {

    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO) throws Exception;

    void paySuccess(String outTradeNo);

    PageDTO<OrderVO> queryHistoryOrders(OrderQuery query);

    OrderVO orderDetail(Long id);

    void cancelOrder(Long id);

    void repetition(Long id);

    PageDTO<OrderVO> conditionSearch(OrderQuery query);

    OrderStatisticsVO countStatus();

    void confirmOrder(OrdersConfirmDTO orders);

    void deliveryOrder(Long id);

    void completeOrder(Long id);

    void cancelOrderAdmin(OrdersCancelDTO cancelDTO);

    void rejectOrder(OrdersRejectionDTO rejectionDTO);

    OrderVO queryOrderDetails(Long id);

    void remindOrder(Long id);
}
